import java.lang.Math.*;
public class Die {
	public int roll() {
		return (int) Math.ceil(Math.random() * 6);
	}
}

class WeightedDie extends Die {
	public int roll() {
		if (Math.random() < 0.5)
			return super.roll();
		else
			return 6;
	}
}